package com.zdkj.subway.check.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zdkj.subway.check.entity.SwAuInternetTicketEquipment;
import com.zdkj.subway.check.entity.SwAuInternetTicketEquipmentDetails;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 互联网售票机数据录入 2-2-12、888互联网售票机（主表）SW_AU_INTERNET_TICKET_EQUIPMENT
 */
@Mapper
public interface SwAuInternetTicketEquipmentMapper extends BaseMapper<SwAuInternetTicketEquipment> {

    List<Map<String, Object>> getSwAuInputInternetTicketEquipmentList(@Param("param") SwAuInternetTicketEquipment swAuInternetTicketEquipment);

    /**
     * 删除详情表数据
     * @param id
     * @return
     */
    Integer deleteSwAuInputInternetTicketEquipmentDetail(Integer id);

    /**
     * 添加数据
     * @param param
     * @return
     */
    int insertSwAuInputInternetTicketEquipmentDetail(SwAuInternetTicketEquipmentDetails param);

    /**
     * 明细表
     * @param param
     * @return
     */
    List<Map<String, Object>> getSwAuInputInternetTicketEquipmentDetails(Map<String,Object> param);

    /**
     * 添加数据
     * @param swAuInternetTicketEquipment
     * @return
     */
    int insertSwAuInputInternetTicketEquipment(SwAuInternetTicketEquipment swAuInternetTicketEquipment);

    Integer approvePassSwAuInputInternetTicketEquipment(@Param("ids") String[] ids);

    List<Map<String, Object>> getSwAuInputInternetTicketEquipmentIdsList(@Param("ids") String[] ids);

    List<Map<String, String>> selectStationMap();
}
